package com.bookmanger.entity.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class ModifyBook {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;//图书id
    private String bookName;//书名
    private String description;//描述
    private String picture;//图片
    private String author;//作者
    private String ISBN;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long categoryId;//分类id
    private Integer amount;//库存
    private String publishing_house;//出版社
    private LocalDateTime publishing_time;//出版时间
    private Integer pages;//页数
    private BigDecimal price;//定价
}
